<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-05-05 15:00:38
         compiled from "C:\wamp\www\project.adm.uppii\admin\aplications\views\menu\newmenu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:784355310338d02994-88438772%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5eb5deb30fc0f957b41a533c23c4cb3049be9731' => 
    array (
      0 => 'C:\\wamp\\www\\project.adm.uppii\\admin\\aplications\\views\\menu\\newmenu.tpl',
      1 => 1430848832,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '784355310338d02994-88438772',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_55310338d06814_97717753',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55310338d06814_97717753')) {function content_55310338d06814_97717753($_smarty_tpl) {?><div class="row ">
    <div class='col-md-12 v_margin_15x'>
        <section class='widget'>
            <header class='widget-header bg-primary clearfix'>
                <div class='pull-left'>
                    <h4>Novo Menu</h4>
                </div>
            </header>
            <div class='widget-content'>
                <form id='frm_new_menu' class="v_margin_5x" method="post" action='<?php echo @constant('URLDOMINIOADMIN');?>
menu/novomenu'>
                    <div class='input-group b_margin_5x'>
                        <label>Nome do menu - <small>Defina um nome para que voc&ecirc; indentifique o menu</small></label>
                        <input type="text" name='nome_menu' class="form-control" placeholder="escreva o nome do menu" />

                    </div>
                    
                    <button type="submit" class="btn btn-success">
                        <i class='ion ion-android-done'></i>
                        <span>Salvar</span>
                    </button>
                    <span style="visibility:hidden">
                        <i class='fa fa-spinner fa-spin'></i>
                        <em>Processando aguarde...</em>
                    </span>
                </form>
            </div>
        </section>
    </div>
</div>
<?php echo '<script'; ?>
 type='text/javascript'> 
    jQuery(function(){
        jQuery('#frm_new_menu').ajaxForm({
            beforeSubmit:function(){
                boxMensageLoad("-",'-',true);
            },
            success:function(res){
                var $_obj = jQuery.parseJSON(res), icon;
                if($_obj.status){
                   icon = 'fa fa-check'
                   setTimeout(function(){
                       window.location.href = DOMINIOADMIN+"menu/edit/"+$_obj.lastid
                   },1000)
                }else{
                   icon = 'fa fa-warning';
                }
                boxMensageLoad($_obj.msg,icon);
            }
        });
    });
<?php echo '</script'; ?>
><?php }} ?>
